package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)"`
	Password string `gorm:"type:varchar(255)"`
}
type Role struct {
	gorm.Model
	Name  string `gorm:"type:varchar(30)"`
	Uid   int    `gorm:"type:int"`
	User  User   `gorm:"foreignKey:Uid"`
	Qid   int    `gorm:"type:int"`
	Quite Quite  `gorm:"foreignKey:Qid"`
}
type Quite struct {
	gorm.Model
	address string `gorm:"type:varchar(30)"`
}
